// 用户相关
import request from "@/utils/request";
import type { LoginForm, LoginResponseData, UserResponseData } from "./type";

//项目用户相关的请求地址
enum API {
    LOGIN_URL = "/user/login",
    USERINFO_URL = "/user/info",
}

//登录接口
export const reqLogin = (data: LoginForm) => request.post<string, LoginResponseData>(API.LOGIN_URL, data);
//获取用户信息
export const reqUserInfo = () => request.get<string, UserResponseData>(API.USERINFO_URL);

